<template>
  <div class="all">
    <van-nav-bar class="head" title="我的助力" left-text="" left-arrow  @click-left="onClickLeft" />
    <div class="theone" v-for="(item, index) in list" :key="index">
      <van-row>
        <van-col span="8"><van-image :src="item.src" class="image" /></van-col>
        <van-col span="16">
          <van-col span="24" class="first">{{ item.first }}</van-col>
          <van-col span="24" class="second">{{ item.second }}</van-col>
          <van-col span="24" class="third">
            <van-col span="16" class="thirdone"
              >总助力：{{ item.thirdone }}棒</van-col
            >
            <van-col span="8"
              ><van-button type="primary" to="index" class="thirdtwo"
                >查看</van-button
              ></van-col
            >
          </van-col>
        </van-col>
      </van-row>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          src: "https://img01.yzcdn.cn/vant/cat.jpeg",
          first: "2019魔都不夜城排名由你决定",
          second:
            "当下教育行业正在成为最炽手可热的行业，特别是随着二胎乃至未来多胎政策的开放，教育产业正在走向黄金......",
          thirdone: "5230",
        },
        {
          src: "https://img01.yzcdn.cn/vant/cat.jpeg",
          first: "2019魔都不夜城排名由你决定",
          second:
            "当下教育行业正在成为最炽手可热的行业，特别是随着二胎乃至未来多胎政策的开放，教育产业正在走向黄金......",
          thirdone: "5230",
        },
        {
          src: "https://img01.yzcdn.cn/vant/cat.jpeg",
          first: "2019魔都不夜城排名由你决定",
          second:
            "当下教育行业正在成为最炽手可热的行业，特别是随着二胎乃至未来多胎政策的开放，教育产业正在走向黄金......",
          thirdone: "5230",
        },
        {
          src: "https://img01.yzcdn.cn/vant/cat.jpeg",
          first: "2019魔都不夜城排名由你决定",
          second:
            "当下教育行业正在成为最炽手可热的行业，特别是随着二胎乃至未来多胎政策的开放，教育产业正在走向黄金......",
          thirdone: "5230",
        },
        {
          src: "https://img01.yzcdn.cn/vant/cat.jpeg",
          first: "2019魔都不夜城排名由你决定",
          second:
            "当下教育行业正在成为最炽手可热的行业，特别是随着二胎乃至未来多胎政策的开放，教育产业正在走向黄金......",
          thirdone: "5230",
        },
        {
          src: "https://img01.yzcdn.cn/vant/cat.jpeg",
          first: "2019魔都不夜城排名由你决定",
          second:
            "当下教育行业正在成为最炽手可热的行业，特别是随着二胎乃至未来多胎政策的开放，教育产业正在走向黄金......",
          thirdone: "5230",
        },
      ],
    };
  },
  methods:{
     onClickLeft(){
        this.$router.push({path:"/Member"}).catch(error=>error);

     }
   }
};
</script>

<style scoped lang='less'>
.all {
  background-color: rgba(245, 245, 245, 1);
  width: 100%;
  padding-top:60px;
  padding-bottom: 44px;
  margin: 0;
   .head {
    width: 100%;
    height: 51px;
    color: rgba(80, 80, 80, 1);
    background-color: rgba(239, 239, 239, 1);
    position: fixed;
    top: 0;
  }
  /deep/.van-nav-bar .van-icon {
    color: rgba(153, 153, 153, 1);
  }
  /deep/.van-nav-bar__title {
    color: rgba(42, 131, 78, 1);
    font-size: 18px;
  }
  .theone {
    width: 100%;
    height: 137px;
    padding: 15px;
    text-align: left;
    margin-top: 15px;
    box-sizing: border-box;
    color: rgba(80, 80, 80, 1);
    background-color: rgba(255, 255, 255, 1);
    .image {
      width: 103px;
      height: 103px;
    }
    .first {
      color: rgba(80, 80, 80, 1);
      font-size: 16px;
    }
    .second {
      color: rgba(153, 153, 153, 1);
      font-size: 12px;
    }
    .third {
      font-size: 16px;
      .thirdone {
        color: rgba(51, 51, 51, 1);

        padding-top: 5px;
      }
      .thirdtwo {
        color: rgba(255, 255, 255, 1);
        background-color: rgba(42, 131, 78, 1);
        border-radius: 6px;
        width: 66px;
        height: 27px;
        font-size: 14px;
      }
    }
  }

  .all {
    margin-bottom: 42px;
  }
}
</style>